import request from '@/utils/request'

// 用户注册方法
export function register(data) {
  return request({
    url: '/api/register',
    headers: {
      'Content-Type': 'application/json'
    },
    method: 'post',
    data: data
  })
}

// 获取验证码
export function getCaptcha() {
  return request({
    url: '/api/captchaImage',
    method: 'get'
  })
} 